package com.zwr.mvpdemo.net;

import com.zwr.mvpdemo.bean.User;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by zwr on 2017/5/2.
 * 接口访问管理类
 * APIservice
 */

public interface APIService {

    @GET("login")
    Observable<User> login(
            @Query("name") String sxUnionID,
            @Query("pwd") String access_token);


    @GET("sharewarehouse/default.asmx/getShareWHMenu")
    Call<ResponseBody> sharewarehouse(
            @Query("sxUnionID") String sxUnionID,
            @Query("access_token") String access_token,
            @Query("ParentID") String ParentID);
}